package com.tang4j.controller.permission;

import com.tang4j.core.controller.AbstractController;
import com.tang4j.core.model.ResponseModel;
import com.tang4j.model.ThSysRole;
import com.tang4j.service.ThSysRoleService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/thSysRole")
@RestController
public class ThSysRoleController extends AbstractController<ThSysRoleService, ThSysRole> {

    public ThSysRoleController(ThSysRoleService thSysRoleService) {
        super(thSysRoleService);
    }

    @RequestMapping("/getRoles")
    public ResponseModel getRoles() {
        return this.service.getRoles();
    }
}
